/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entities;

import java.io.Serializable;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.OneToMany;
import org.hibernate.annotations.LazyCollection;
import org.hibernate.annotations.LazyCollectionOption;

/**
 *
 * @author akefeli
 */
@Entity
public class SelfStudySection  extends Section implements Serializable {
    @OneToMany(mappedBy = "selfStudySection",cascade= CascadeType.ALL)
    @LazyCollection(LazyCollectionOption.FALSE)
    private List<SelfStudy> selfStudies;

    public List<SelfStudy> getSelfStudies() {
        return selfStudies;
    }

    public void setSelfStudies(List<SelfStudy> selfStudies) {
        this.selfStudies = selfStudies;
    }
    
    
}
